package com.bsj.travel.def.common.DTO.mqtt;

/**
 * @author yinhao
 * @version 1.0
 * @description 网络状态
 * @date 2024/1/29
 */
public enum NetworkEnum {
    SUCCESS(200, "成功"),
    MQTT_SUB_FAIL(1001, "无订阅权限,订阅失败"),
    MQTT_PUB_FAIL(1002, "无发布权限,发布失败"),
    MQTT_CONNECT_PASSWORD_FAIL(1100, "连接失败,用户密码错误"),
    MQTT_CONNECT_SECRET_NULL(1101, "连接失败,关键信息为空"),
    MQTT_CONNECT_PRODUCT_FAIL(1102, "连接失败,无效产品信息"),
    MQTT_CONNECT_DEVICE_FAIL(1103, "连接失败,无效设备信息"),
    MQTT_CONNECT_TRIPLET_FAIL(1104, "连接失败,三元组信息错误"),
    MQTT_CONNECT_DEV_STATUS_BAN(1105, "连接失败,设备已被禁用"),
    ;

    private Integer code;
    private String msg;

    NetworkEnum(Integer code, String message) {
        this.code = code;
        this.msg = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
